home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
476-500
/
500
/
wiconify
/
wiconify-source.lzh
/
Source
/
wMemory.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-19
|
321b
|
11 lines
#include <exec/memory.h>
#define MEMFLAGS MEMF_CLEAR
#define NEWSTRUCT(s,p) (p=(struct s *)AllocMem(sizeof(struct s),MEMFLAGS))
#define FREESTRUCT(s,p) (FreeMem(p,sizeof(struct s)))
#define NEWCHAR(p,n) (p=(char *)AllocMem(n+1,MEMFLAGS))
#define FREECHAR(p) (FreeMem(p,strlen(p)+1))
extern APTR AllocMem();